package cn.stylefeng.guns.modular.outOrder.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.outOrder.entity.OutOrder;
import cn.stylefeng.guns.modular.outOrder.model.params.OutOrderParam;
import cn.stylefeng.guns.modular.outOrder.model.result.OutOrderResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 退款单 服务类
 * </p>
 *
 * @author lauyang
 * @since 2020-04-20
 */
public interface OutOrderService extends IService<OutOrder> {

    /**
     * 新增
     *
     * @author lauyang
     * @Date 2020-04-20
     */
    void add(OutOrderParam param);

    /**
     * 删除
     *
     * @author lauyang
     * @Date 2020-04-20
     */
    void delete(OutOrderParam param);

    /**
     * 更新
     *
     * @author lauyang
     * @Date 2020-04-20
     */
    void update(OutOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author lauyang
     * @Date 2020-04-20
     */
    OutOrderResult findBySpec(OutOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author lauyang
     * @Date 2020-04-20
     */
    List<OutOrderResult> findListBySpec(OutOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author lauyang
     * @Date 2020-04-20
     */
     LayuiPageInfo findPageBySpec(OutOrderParam param);

}
